import request from '@/utils/request'


export default {
  submitOrder(scheduleId, patientId) {
    return request({
      url: `/api/order/orderInfo/submitOrder/${scheduleId}/${patientId}`,
      method: 'post'
    })
  },
  getOrderList(page, limit, searchObj) {
    return request({
      url: `/api/order/orderInfo/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  getStatusList() {
    return request({
      url:`/api/order/orderInfo/list`,
      method: 'get'
    })
  },
  detail(orderId) {
    return request({
      url:`/api/order/orderInfo/${orderId}`,
      method: 'get'
    })
  },
  cancelOrder(orderId) {
    return request({
      url:`/api/order/orderInfo/cancelOrder/${orderId}`,
      method: 'put'
    })
  }
}
